define(['./controllers'], function (controllers) {
    'use strict';
    controllers.controller('regCtrl', ['$scope', '$timeout', '$state','$modal',
        function ($scope,$timeout, $state,$modal) {
            //首页动画
            $scope.pageClass = 'page-home';
            $scope.tel="135";
            //打开上传mode
            $scope.openMessage = function () {
                var modalInstance = $modal.open({
                    templateUrl: 'partials/modal/message.html',
                    controller: 'messageCtrl',
                    size: 'sm',
                    resolve: {
                        title: function () {
                            return "提示信息";
                        },
                        info:function(){
                            return "手机号重复";
                        }
                    }
                });
                //操作返回
                modalInstance.result.then(function (selectedItem) {
                    // 清空用户本地token存储的信息，如果
                }, function () {
                });
            };
        }
    ])

})
